function checkForm(frm){
	//姓名校验
	var UserName =  frm.PositionApply200_UserName.value;
	
	/*var pattern_UserName_cn = /^([\u4E00-\u9FA5]|[_\-a-zA-Z0-9]|[_\-]|[.]|[ ])*$/i;

	if(UserName.length==0){
		alert("姓名不能为空");
		frm.PositionApply200_UserName.value="";
		frm.PositionApply200_UserName.focus();
		return false;
	}else	if(!pattern_UserName_cn.test(UserName)){
		alert("输入的姓名不能有特殊字符");
		frm.PositionApply200_UserName.focus();
		return false;
	}else if(UserName.length > 16){
		alert("姓名最长为16个字符");
		frm.PositionApply200_UserName.focus();
		return false;
	}*/
	
	if(UserName.length==0){
		alert("姓名不能为空");
		//frm.PositionApply200_UserName.value="";
		frm.PositionApply200_UserName.focus();
		return false;
	}else	if(!hasSpecSymbol(UserName)){
		//可以包含[_\-]|[.]|[ ]
		alert("输入的姓名不能有特殊字符");
		frm.PositionApply200_UserName.focus();
		return false;
	}else if(UserName.length > 16){
		alert("姓名最长为16个字符");
		frm.PositionApply200_UserName.focus();
		return false;
	}
	//照片校验
	/*var fileName =  frm.PositionApply200_Photo.value;
	if((fileName != null)&&(fileName != "")){
		if(fileName.lastIndexOf(".")!=-1){
			var fileType = fileName.substring(fileName.lastIndexOf(".")+1,fileName.length);
			fileType = fileType.toLowerCase();
			if(!((fileType=="gif")||(fileType=="bmp")||(fileType=="jpg")||(fileType=="jpeg"))){
				alert("请上传图片文件");
				return false;
			}
		}else{
			alert("输入的照片路径错误");
			return false;
		}
	}*/
	//出生日期校验
	var Birthday = frm.PositionApply200_Birthday.value;
	var pattern_Birthday =/^(([0-9]{4})+([\-]{1})+([0-9]{2})+([\-]{1})+([0-9]{2}))$/;
	if(Birthday.length==0){
		alert("输入的出生日期不能为空");
		frm.PositionApply200_Birthday.value="";
		frm.PositionApply200_Birthday.focus();
		return false;
	}else if(!pattern_Birthday.test(Birthday)){
			alert("输入的出生日期不正确");
			frm.PositionApply200_Birthday.focus();
			return false;
	}else{
		var year = Birthday.substring(0,4);
		var month = Birthday.substring(5,7);
		var day = Birthday.substring(8,10);
		if(year < 1900){
			alert("年份不能小于1900");
			frm.PositionApply200_Birthday.focus();
			return false;
		}
		if(month > 12){
			alert("月份不能大于12");
			frm.PositionApply200_Birthday.focus();
			return false;
		}
		if(day > 31){
			alert("日不能大于31");
			frm.PositionApply200_Birthday.focus();
			return false;
		}
	}
	//身高校验
	var Height =  frm.PositionApply200_Height.value;
	var pattern_Height1 = /^[0-9]{3}$/;
	var pattern_Height2 = /^([1-9]{1})+([0-9]{2})$/;
	if(Height.length > 0){
			if(Height.length != 3){
				alert("身高必须为3位数字");
				frm.PositionApply200_Height.focus();
				return false;
			}else if(Height.indexOf(".")!=-1){
				alert("身高不能为小数");
				frm.PositionApply200_Height.focus();
				return false;
			}else if(!pattern_Height1.test(Height)){
				alert("身高必须为数字");
				frm.PositionApply200_Height.focus();
				return false;
			}else if(!pattern_Height2.test(Height)){
				alert("身高不能为零开头的数字");
				frm.PositionApply200_Height.focus();
				return false;
			}
	}	
	//籍贯校验
	var NativePlace =  frm.PositionApply200_NativePlace.value;
	if(NativePlace.length==0){
			alert("籍贯不能为空");
		  frm.PositionApply200_NativePlace.value="";
			frm.PositionApply200_NativePlace.focus();
			return false;
	}else	if(NativePlace.length < 2){
			alert("籍贯不能少于两个字符");
			frm.PositionApply200_NativePlace.focus();
			return false;
	}else if(NativePlace.length > 32){
		alert("籍贯不能超过32个字符");
		frm.PositionApply200_NativePlace.focus();
		return false;
	}
	//户口所在地校验
	var Province =  frm.PositionApply200_Province.value;
	if(Province.length==0){
			alert("户口所在地不能为空");
			frm.PositionApply200_Province.value="";
			frm.PositionApply200_Province.focus();
			return false;
	}else	if(Province.length < 2){
			alert("户口所在地不能少于两个字符");
			frm.PositionApply200_Province.focus();
			return false;
	}else if(Province.length > 32){
		alert("户口所在地不能超过32个字符");
		frm.PositionApply200_Province.focus();
		return false;
	}
	//通讯地址校验
	var PostAddress =  frm.PositionApply200_PostAddress.value;
	if(PostAddress.length > 0){
		if(PostAddress.length < 2){
			alert("通讯地址不能少于两个字符");
			frm.PositionApply200_PostAddress.focus();
			return false;
		}else if(PostAddress.length > 32){
			alert("通讯地址不能超过32个字符");
			frm.PositionApply200_PostAddress.focus();
			return false;
		}
	}	
	//邮政编码校验
	var PostCode =  frm.PositionApply200_PostCode.value;
	var pattern_PostCode = /^[0-9]*$/;
	if(PostCode.length > 0){
		if(!pattern_PostCode.test(PostCode)){
			alert("邮政编码必须为数字");
			frm.PositionApply200_PostCode.focus();
			return false;
		}else if(PostCode.length != 6){
			alert("邮政编码必须为6位");
			frm.PositionApply200_PostCode.focus();
			return false;
		}
	}
	//证件号码校验
	var CardNo =  frm.PositionApply200_CardNo.value;
	if(CardNo.length > 0){
		if(CardNo.length < 3){
			alert("证件号码不能少于3位");
			frm.PositionApply200_CardNo.focus();
			return false;
		}else if(CardNo.length > 18){
			alert("证件号码不能超过18位");
			frm.PositionApply200_CardNo.focus();
			return false;
		}
	}

	//联系电话校验
	var PhoneNo =  frm.PositionApply200_PhoneNo.value;
	var pattern_PhoneNo = /^[0-9\-\(\)]*$/;
	if(PhoneNo.length==0){
		alert("联系电话不能为空");
		frm.PositionApply200_PhoneNo.value="";
		frm.PositionApply200_PhoneNo.focus();
		return false;
	}else if(!pattern_PhoneNo.test(PhoneNo)){
		alert("联系电话必须为数字");
		frm.PositionApply200_PhoneNo.focus();
		return false;
	}else if(PhoneNo.length > 32){
		alert("联系电话不能超过32位");
		frm.PositionApply200_PhoneNo.focus();
		return false;
	}
	//Email校验
	var Email =  frm.PositionApply200_Email.value;
	//校验类似于hxu@sitechasia.com的邮件
	var	pattern1_Email ="^(([\u4E00-\u9FA5]|[a-zA-Z0-9_.\-])+[@]{1}([\u4E00-\u9FA5]|[a-zA-Z0-9_\-])+[.]{1,5}([\u4E00-\u9FA5]|[a-zA-Z0-9_\-]))+";
	  //校验类似于huanxu@yahoo.com.cn的邮件
	var pattern2_Email ="^(([\u4E00-\u9FA5]|[a-zA-Z0-9_.\-])+[@]{1}([\u4E00-\u9FA5]|[a-zA-Z0-9_\-])+[.]{1,5}([\u4E00-\u9FA5]|[a-zA-Z0-9_\-])+[.]{1,5}([\u4E00-\u9FA5]|[a-zA-Z0-9_\-]))";
	if(Email.length==0){
		alert("电子邮件不能为空");
		frm.PositionApply200_Email.value="";
		frm.PositionApply200_Email.focus();
		return false;
	}else if(Email.length > 128){
		alert("电子邮件不能超过128个字符");
		frm.PositionApply200_Email.focus();
		return false;
	}
	if(Email.match(pattern1_Email)||Email.match(pattern2_Email)){
		//
	}else{
			alert("输入的电子邮件不正确");
			frm.PositionApply200_Email.focus();
			return false;
	}

	//手机号码校验
	var Mobile =  frm.PositionApply200_Mobile.value;
	var pattern_Mobile = /^[1-9]{1}+[0-9]*$/;
	if(Mobile.length > 0){
		 if(Mobile.length!=11){
			alert("手机号码必须为11位的数字");
			frm.PositionApply200_Mobile.focus();
			return false;
		}else if(!pattern_Mobile.test(Mobile)){
			alert("手机必须为非零开头的数字");
			frm.PositionApply200_Mobile.focus();
			return false;
		}
	}
	//期望工作地区校验
	var ExpectationWorkPlace =  frm.PositionApply200_ExpectationWorkPlace.value;
	if(ExpectationWorkPlace.length==0){
			alert("期望工作地区不能为空");
			frm.PositionApply200_ExpectationWorkPlace.value="";
			frm.PositionApply200_ExpectationWorkPlace.focus();
			return false;
	}
	//期望月薪校验
	var ExpectationSalary = frm.PositionApply200_ExpectationSalary.value;
	var pattern_ExpectationSalary=/^[0-9]*$/;
	var pattern_ExpectationSalary2 = /^([1-9]{1})+([0-9])*$/;
	if(ExpectationSalary.length==0){
			alert("期望月薪不能为空");
			frm.PositionApply200_ExpectationSalary.value="";
			frm.PositionApply200_ExpectationSalary.focus();
			return false;
	}else if(ExpectationSalary.indexOf(".")!=-1){
				alert("期望月薪不能为小数");
				frm.PositionApply200_ExpectationSalary.focus();
				return false;
	}else if(!pattern_ExpectationSalary.test(ExpectationSalary)){
			alert("期望月薪必须为数字");
			frm.PositionApply200_ExpectationSalary.focus();
			return false;
	}else if(!pattern_ExpectationSalary2.test(ExpectationSalary)){
			alert("期望月薪不能为零开头的数字");
			frm.PositionApply200_ExpectationSalary.focus();
			return false;
	}else if(ExpectationSalary.length > 5){
			alert("期望月薪不能大于5位数字");
			frm.PositionApply200_ExpectationSalary.focus();
			return false;
	}
	//工作性质校验
	var WorkProperty =  frm.PositionApply200_WorkProperty.value;
	if(WorkProperty==""){
		alert("请选择工作性质");
		frm.PositionApply200_WorkProperty.focus();
		return false;
	}
	//毕业学校校验
	var GraduateSchool =  frm.PositionApply200_GraduateSchool.value;
	if(GraduateSchool.length==0){
			alert("毕业学校不能为空");
			frm.PositionApply200_GraduateSchool.value="";
			frm.PositionApply200_GraduateSchool.focus();
			return false;
	}else if(GraduateSchool.length > 32){
			alert("毕业学校不能超过32个字符");
			frm.PositionApply200_GraduateSchool.focus();
			return false;
	}
	//所学专业校验
	var Speciality =  frm.PositionApply200_Speciality.value;
	if(Speciality.length==0){
			alert("所学专业不能为空");
			frm.PositionApply200_Speciality.value="";
			frm.PositionApply200_Speciality.focus();
			return false;
	}else if(Speciality.length > 20){
			alert("所学专业不能超过20个字符");
			frm.PositionApply200_Speciality.focus();
			return false;
	}
	//个人简历校验
	var Resume =  frm.PositionApply200_Resume.value;
	if(Resume.length==0){
			alert("个人简历不能为空");
			frm.PositionApply200_Resume.value="";
			frm.PositionApply200_Resume.focus();
			return false;
	}else	if(Resume.length > 2000){
		alert("输入的个人简历不能超过2000个字符");
		frm.PositionApply200_Resume.focus();
		return false;		
	}
	//附件校验
	/*var IsUsingAttach = frm.PositionApply200_IsUsingAttach.value;
	if(IsUsingAttach=="true"){
		var FilePath = frm.PositionApply200_Attachment.value;
		if(FilePath.length!=0){
			var Num = FilePath.lastIndexOf("\\");
			if(Num==-1){
				alert("附件文件路径错误");
				return false;
			}else if(FilePath.length == Num+1){
				alert("附件没有文件名");
				return false;
			}
			var FileName = FilePath.substring(Num+1);
			if(FileName.indexOf(".")==-1){
				alert("附件没有扩展名");
				return false;
			}
		}
	}*/

	return true;
}

function hasSpecSymbol(str){
	var str	= str;
	
	for (var i = 0; i < str.length; i++) { 
		var ch = str.charAt(i); 
		if ((ch == "`" )|| (ch == "~" )||(ch == "!" )||(ch == "@" )||
			(ch == "#" )||(ch == "%" )||(ch == "^" )||(ch == "&" )||
			(ch == "*" )||(ch == "(" )||(ch == ")" )||(ch == "+" )||
                        (ch == "=" )||(ch == "|" )||(ch == "{" )||(ch == "}" )||
                        (ch == "[" )||(ch == "]" )||(ch == ":" )||(ch == ";" )||
                        (ch == "'" )||(ch == '"' )||(ch == "<" )||(ch == ">" )||
                        (ch == "," )||(ch == "\\" )||(ch == "?" )||
			(ch == "/" )) { 
			return false; 
		} 
	} 
	
    return true; 		
}
   
/*  
*校验字符串是否包含中文特殊符号
*返回值：
*如果为空，定义校验通过，           返回true
*如果字串为中文，校验通过，         返回true
*如果字串为非中文，             返回false    
*/   
function IsChineseSpecSymbol(str){

var pattern_cn = /^([\uFE30-\uFFA0])*$/gi;
	
	if(pattern_cn.test(str)){
		return true;
	}else{
		return false;
	}
}